home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / PTD_TREE.ZIP / SAMPLE-3.POV < prev    next >
Encoding:
Text File  |  1996-09-19  |  2.9 KB  |  92 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //------------------------------------------------------------------->
  4. //
  5. // "sample-3.pov" - Sample tree for the "ptd_tree" include file.
  6. //
  7. // This is an extremely UNrealistic tree!
  8. //
  9. //------------------------------------------------------------------->
  10. //------------------------------------------------------------------->
  11. //
  12. // Set up a simple scene.
  13.  
  14.         #include "colors.inc"
  15.         #include "textures.inc"
  16.         #include "skies.inc"
  17.         #include "golds.inc"
  18.         #include "stones.inc"
  19.         #include "glass.inc"
  20.  
  21.         #default { finish { Shiny } }
  22.  
  23.         camera { location < 0, 6, -22> 
  24.         look_at < 0, 9, 0> }
  25.  
  26.         light_source { < -100, 100,    0 > color White}
  27.         light_source { <    0, 100, -100 > color White}
  28.         light_source { <  100, 100,    0 > color White}
  29.  
  30.         sky_sphere { S_Cloud2 rotate y*90 rotate x*90 }
  31.  
  32.         cylinder { <0,0,0><0,-1,0>,2000 texture { T_Green_Glass }
  33.                 normal { bumps 2 scale 4 } }
  34.         
  35.         cylinder { <0,-8,0><0,-9,0>,2000 pigment { Gray50 } }
  36.  
  37. //------------------------------------------------------------------->
  38. //------------------------------------------------------------------->
  39. //
  40. // Now set all of the variables for the tree. read "ptd_tree.txt" to
  41. // find out what all these things do!
  42.  
  43.         #declare TREE_RAND = seed(0)
  44.         #declare Wiggle_Flag = off
  45.         #declare Branches_On_End_Flag = on
  46.  
  47.         #declare Number_Of_Large_Branches = 13
  48.         #declare Number_Of_Medium_Branches = 2
  49.         #declare Number_Of_Small_Branches = 2
  50.  
  51.         #declare Large_Branch_Minimum_Angle = 70
  52.         #declare Large_Branch_Maximum_Angle = 70
  53.         
  54.         #declare Medium_Branch_Minimum_Angle = 80
  55.         #declare Medium_Branch_Maximum_Angle = 80
  56.         
  57.         #declare Small_Branch_Minimum_Angle = 90
  58.         #declare Small_Branch_Maximum_Angle = 90
  59.  
  60.         #declare Tree_Trunk_Size = 7
  61.  
  62.         #declare Large_Branch_Size_Min = 7
  63.         #declare Large_Branch_Size_Max = 7
  64.  
  65.         #declare Medium_Branch_Size_Min = 5
  66.         #declare Medium_Branch_Size_Max = 5
  67.  
  68.         #declare Small_Branch_Size_Min = 1
  69.         #declare Small_Branch_Size_Max = 1
  70.  
  71.         #declare Leaf_Type = 3
  72.  
  73.         #declare TREE_MESH_SIZE = 300
  74.  
  75.         #declare Leaf_Texture = texture { pigment { White } }
  76.         #declare Bark_Texture = texture { T_Gold_3C }
  77.  
  78. //------------------------------------------------------------------->
  79. //------------------------------------------------------------------->
  80. //
  81. // Now go and build the tree, then show it.
  82.  
  83.         #include "ptd_tree.inc"
  84.  
  85.         object { Complete_Tree }
  86.  
  87. //------------------------------------------------------------------->
  88. //------------------------------------------------------------------->
  89. //
  90. // End of this file.
  91.  
  92.